(function(){
    b(a)
    var a= 6
    function b (){console.log(a)}
})()